﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Doodleberg
{
    static class Global
    {
        public const float seglen = 30; //The length of each segment of a curved line
        public const float def_restitution = 0.7f; //The default line restitution
        public const float rollThreshold = 200; //When the ball rolls instead of bouncing
        public const float lineDeleteThreshold = 10; //How close must click to delete line
        public const float maxVelocity = 1200; //Maximum ball speed
        public const int maxInk = 1000;

        public const float farseer_conversion = 60;

        public static Vector2 gravity = new Vector2(0.0f, 700.0f);

        private static Level mLevel = new Level("Levels/progression.txt");
        public static Level level
        {
            get
            {
                return mLevel;
            }
        }

        private static Editor mEditor = new Editor();
        public static Editor editor
        {
            get
            {
                return mEditor;
            }
        }

        private static GameProperties mGameProperties = new GameProperties();
        public static GameProperties gameProperties
        {
            get
            {
                return mGameProperties;
            }
        }


        public static int vertswap(int current)
        {
            return 2 - (current - 1);
        }
    }
}
